<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>数据分析</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- css -->
<link href="../static/css/bootstrap-responsive.css" rel="stylesheet">
<link href="../static/css/style.css" rel="stylesheet">
<!-- skin color -->
<link href="../static/color/default.css" rel="stylesheet">
<!--[if lt IE 7]>
    <link href="css/font-awesome-ie7.css" type="text/css" rel="stylesheet">  
<![endif]-->
<link rel="shortcut icon" href="../static/img/favicon.ico">
<style type="text/css">
    .content{
        margin-left:4%;
        margin-right:4%;
    }
</style>
</head>
<body>
<!-- navbar -->
<div class="navbar-wrapper">
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <!-- Responsive navbar -->
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
                </a>
                <h1 class="brand"><a href="index.html" tppabs="#">DataAnalysis</a></h1>
                <!-- navigation -->
                <nav class="pull-right nav-collapse collapse">
                <ul id="menu-main" class="nav">
                    <li><a title="team" href="/index.html">主页</a></li>
                    <li><a title="services" href="/analysis.html">数据分析</a></li>
                    <li><a title="works" href="/blog/index.html?column=1">案例系统</a></li>
                    <li><a title="blog" href="/blog/index.html?column=1">开源论坛</a></li>
                    <li><a title="contact" href="/help.html">帮助中心</a></li>
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="#"><span class="glyphicon glyphicon-user"></span>{{ user }}</label></a></li>
                    </ul>
                </ul>
                </nav>
            </div>
        </div>
    </div>
</div>

<!-- section: team -->
<section id="about" class="section">
<div class="container" >
    <h4>利用箱型图进行异常值检测</h4>
    <div class="row">
        <div class="span4 offset1">
            <div>
                <p>
                <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱型图（Box-plot），</strong>
                    又称为盒须图、盒式图或箱线图，是一种用作显示一组数据分散情况资料的统计图。因形状如箱子而得名。箱型图可用于识别异常值、判断数据偏态和尾重、比较几批数据的形状等。
                </p>
                <p>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如右图所示，一张箱型图中给出上/下边缘、上/下四分位数以及中位数五个数据节点，分布在上/下边缘之外的数据为异常值。
                </p>
            </div>
        </div>
        <div class="span6">
            <div class="aligncenter">
                <img src="../static/img/box.jpg" alt="" />
            </div>
        </div>
    </div>

    <hr><br>
                <h4>数据输入处</h4>

                <div class="span9">
                <form class="bs-example bs-example-form " method="post" name="knn" role="form" action="" enctype="multipart/form-data">
                {% csrf_token %}
                <!--格式-->
                  
                    <label>对第__列进行异常值检测：</label>
                    <input type="text" class="form-control" placeholder="请输入合适的数字" name="number" value="{{ number }}" required="required">
                    <label>测试数据:</label>
                    <input type="file" name="csv" required="required" > 
                    <p class="form-btn">
                        <button type="submit" class="btn btn-primary btn-lg " name="ok" onclick=draw()>上传文件</button>
                    </p>
                </form>
                </div>
</div>


<!-- /.container -->
<div class="container">
{% if src %}
<p>&nbsp;</p>
<hr>
<h3 align="center">分析结果箱型图</h3>
<br>
<img src="../static/tmpimage/{{ src }}" style="padding-left:15%" />
<hr>
<div class="content">
<p>结合上图与文字性说明，可直观地得出异常值及其分布情况。</p>

</div>
</div>

{% else %}
<p>&nbsp;</p>

{% endif %}
</section>

<footer>
<div class="container">
    <div class="row">
        <div class="span6 offset3">
            <ul class="social-networks">
                <li><a href="#"><i class="icon-circled icon-bgdark icon-instagram icon-2x"></i></a></li>
                <li><a href="#"><i class="icon-circled icon-bgdark icon-twitter icon-2x"></i></a></li>
                <li><a href="#"><i class="icon-circled icon-bgdark icon-dribbble icon-2x"></i></a></li>
                <li><a href="#"><i class="icon-circled icon-bgdark icon-pinterest icon-2x"></i></a></li>
            </ul>
            <p class="copyright">Copyright &copy;  <a href="http://sjfx.piclass.cn" target="_blank" title="数据分析">sjfx.piclass.cn</a> 
</p>
        </div>
    </div>
</div>
<!-- ./container -->
</footer>
<a href="#" class="scrollup"><i class="icon-angle-up icon-square icon-bgdark icon-2x"></i></a>
<!-- jQuery -->
<script src="../static/js/jquery.js"></script>
<!-- nav -->
<script src="../static/js/jquery.scrollTo.js"></script>
<script src="../static/js/jquery.nav.js"></script>
<!-- localScroll -->
<script src="../static/js/jquery.localscroll-1.2.7-min.js"></script>
<!-- bootstrap -->
<script src="../static/js/bootstrap.js"></script>
<!-- prettyPhoto -->
<script src="../static/js/jquery.prettyPhoto.js"></script>
<!-- Works scripts -->
<script src="../static/js/isotope.js"></script>
<!-- flexslider -->
<script src="../static/js/jquery.flexslider.js"></script>
<!-- inview -->
<script src="../static/js/inview.js"></script>
<!-- animation -->
<script src="../static/js/animate.js"></script>
<!-- twitter -->
<script src="../static/js/jquery.tweet.js"></script>
<!-- contact form -->
<script src="../static/js/validate.js"></script>
<!-- custom functions -->
<script src="../static/js/custom.js"></script>
</body>
</html>